import 'package:flutter/material.dart';
import 'package:flutter_juwo/common/common_index.dart';

class ProgressView extends StatelessWidget {
  final Color color;
  final double width;

  ProgressView({this.color = const Color(0xFF66CBFF),this.width=46});

  @override
  Widget build(BuildContext context) {
    return new Center(
      child: new SizedBox(
        width: ScreenUtil().setWidth(width),
        height:ScreenUtil().setWidth(width),
        child: new CircularProgressIndicator(
          valueColor: AlwaysStoppedAnimation<Color>(color),
          strokeWidth: 2.0,
        ),
      ),
    );
  }
}
